//
//  EvidenceOfEventViewerViewController.h
//  SecretRoom
//
//  Created by Sitdhibhong Laokok on 9/5/54 BE.
//  Copyright 2554 App Tree. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import <MessageUI/MessageUI.h>
#import <MessageUI/MFMailComposeViewController.h>

#import "Event.h"
#import "Evidence.h"

#import "FileRepositoryControlCenter.h"

@interface EvidenceOfEventViewerViewController : UITableViewController <UIImagePickerControllerDelegate, UIActionSheetDelegate, UINavigationControllerDelegate, CLLocationManagerDelegate, NSFetchedResultsControllerDelegate, MFMailComposeViewControllerDelegate, UIAlertViewDelegate> {
    
    UIBarButtonItem *cameraConnection;
    UIBarButtonItem *flexibleWidth;
    NSManagedObjectContext *context;
    NSFetchedResultsController *evidenceFetchedResultController;
    Event *event;
    Evidence *evidenceForThisEvent;
    UIImagePickerController *evidenceImagePicker;
    UIImagePickerController *evidecePickerController;
    
    BOOL sourceTypeIsComesFromCamera;
    
    CLLocationManager *locationManager;
    CLLocationCoordinate2D locationPoint;
    
    NSDateFormatter *dateFormatter;
}

@property (nonatomic, retain) CLLocationManager *locationManager;
@property (nonatomic, assign) CLLocationCoordinate2D locationPoint;

@property (nonatomic, retain) IBOutlet UIImagePickerController *evidecePickerController;

@property (nonatomic, retain) IBOutlet UIImagePickerController *evidenceImagePicker;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *cameraConnection;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *flexibleWidth;
@property (nonatomic, retain) IBOutlet NSManagedObjectContext *context;
@property (nonatomic, retain) IBOutlet NSFetchedResultsController *evidenceFetchedResultController;
@property (nonatomic, retain) IBOutlet Event *event;
@property (nonatomic, retain) IBOutlet Evidence *evidenceForThisEvent;

- (IBAction)cameraOpened:(id)sender;

- (void)refreshForImageFromServer;
- (void)showActionPerformed;


@end
